Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make crayfits and fits a part of dev and prod profiles #56

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

joecorall
Copy link
Contributor

While testing Islandora-Devops/isle-buildkit#348 with isle-site-template, FITS derivative creation appeared broken. Changing the docker-compose.yml to have crayfits+fits use the dev/prod profiles like all other services resolved the issue.

@joshdentremont
Copy link
Contributor

I just tested on my existing site and it seems like the fits generation issue is only happening with the dev site. On my production site it is generating FITS correctly.

I tried making these changes to my dev site's docker-compose.yml and it still isn't generating FITS on Buildkit 3.2.7 or 3.4.0.

@joecorall Were you testing on a fresh dev install? It seems strange that this fixed it for you but not for me.

@joecorall
Copy link
Contributor Author

@joshdentremont - are the old/orphaned containers gone after making the change?

docker compose --profile dev up -d --remove-orphans

@joshdentremont
Copy link
Contributor

That didn't seem to make a difference. Still getting this error:

scholar-crayfits-dev-1  | [2024-08-15 13:57:11] request.CRITICAL: Uncaught PHP Exception ErrorException: "Warning: Undefined variable $response" at /var/www/crayfish/CrayFits/src/Controller/FitsController.php line 62 {"exception":"[object] (ErrorException(code: 0): Warning: Undefined variable $response at /var/www/crayfish/CrayFits/src/Controller/FitsController.php:62)"} []

@joshdentremont
Copy link
Contributor

Looks like this is a similar issue to this: roblib/CrayFits#13, but a different error message.

@joecorall
Copy link
Contributor Author

joecorall commented Aug 15, 2024

@joshdentremont - that's the error I was getting but switching to profiles in this PR fixed it.

Are you running on a Mac? I've had better success running linux images than arm

export DOCKER_DEFAULT_PLATFORM=linux/amd64
docker compose --profile dev pull
docker compose --profile dev up -d --remove-orphans

Perhaps it's the arm vs amd issue that's really at play here on Mac, but I think we should standardize all our services to use dev/prod profiles (fits/crayfits are the only two that don't) so whether this fixes the issue locally or not I think we should merge this.

@joecorall
Copy link
Contributor Author

Looks like this is a similar issue to this: roblib/CrayFits#13, but a different error message.

Your error message is the same. Rosie confirmed this PR addresses the known issue: roblib/CrayFits#13 (comment)

@joshdentremont
Copy link
Contributor

I just confirmed that this does fix it on a new install, so there is probably something else in my dev setup that is causing it not to work.

I also confirmed that this change does not break my fits generation in production.

I think this is fine to merge.

@joecorall
Copy link
Contributor Author

Thanks. I'm going to merge this since new installs are in a broken state without this PR.

@joecorall joecorall merged commit cb7f82c into main Aug 15, 2024
3 checks passed
@joecorall joecorall deleted the crayfits-dev-prod branch August 15, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants